//
//  ZFVipView.swift
//  map
//
//  Created by fyzq on 2024/2/4.
//

import UIKit

class ZFVipView: UIView {

    var textLabel:UILabel!
    override init(frame: CGRect) {
        super.init(frame: frame)
        setZFVipView()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    fileprivate func setZFVipView(){
        textLabel = UILabel()
        textLabel.font = UIFont.systemFont(ofSize: 8)
        textLabel.textColor = .white
        textLabel.backgroundColor = .red
        textLabel.snp.makeConstraints { make in
            make.edges.equalToSuperview().inset(UIEdgeInsets.init(top: 2, left: 4, bottom: 2, right: 4))
        }
        textLabel.text = ""
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        
        self.textLabel.jk.addCorner(conrners: [UIRectCorner.topLeft,UIRectCorner.bottomRight], radius: 3)
    }
}
